package org.dromara.iot.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;
import org.dromara.iot.domain.IotAnnualInspection;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;


/**
 * 电梯年检管理视图对象 iot_annual_inspection
 *
 * @author lsl
 * @date 2024-06-16
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = IotAnnualInspection.class)
public class IotAnnualInspectionVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 年检ID
     */
    @ExcelProperty(value = "年检ID")
    private Long inspectionId;

    /**
     * 关联计划ID
     */
    @ExcelProperty(value = "关联计划ID")
    private Long planId;

    /**
     * 电梯名称
     */
    @ExcelProperty(value = "电梯名称")
    private String elevatorName;

    /**
     * 年检日期
     */
    @ExcelProperty(value = "年检日期")
    private Date annualDate;

    /**
     * 是否检查限速器（N.否，Y.是）
     */
    @ExcelProperty(value = "是否检查限速器", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=.是，1.否")
    private String checkSpeedLimiter;

    /**
     * 是否年检通过
     */
    @ExcelProperty(value = "是否年检通过")
    private String checkThrough;

    /**
     * 年检状态(0.待启动,1.执行中,2.已完成,3.已超期)
     */
    @ExcelProperty(value = "年检状态(0.待启动,1.执行中,2.已完成,3.已超期)")
    private String inspectionStatus;

    /**
     * 年检负责人
     */
    @ExcelProperty(value = "年检负责人")
    private String headMan;

    /**
     * 负责人ID
     */
    @ExcelProperty(value = "负责人ID")
    private Long headUserId;

    /**
     * 年检启动日期
     */
    @ExcelProperty(value = "年检启动日期")
    private Date startTime;

    /**
     * 年检完成时间
     */
    @ExcelProperty(value = "年检完成时间")
    private Date completionTime;

    /**
     * 年检描述
     */
    @ExcelProperty(value = "年检描述")
    private String inspectionContext;

    /**
     * 年检图片
     */
    @ExcelProperty(value = "年检图片")
    private String inspectionImg;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    private IotElevatorVo elevatorVo;

    /**
     * 识别码
     */
    private String registeredCode;

    /**
     * 负责人头像
     */
    @Translation(type = TransConstant.OSS_ID_TO_URL)
    private Long headManAvatar;
}
